package ldh.im.business.dao;


import ldh.im.business.pojo.ImUser;
import ldh.im.business.pojo.where.ImUserWhere;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author: ldh
* @date: 2021-06-06 10:17:43
*/
public interface ImUserDao {

	Integer insert(ImUser imUser);

	Integer insertSelective(ImUser imUser);

	Integer updateById(ImUser imUser);
	
	Integer updateNotNullById(ImUser imUser);
	
	Integer deleteById(Long id);

	ImUser getByIdAndTenantId(@Param("id")Long id, @Param("tenantId") Long tenantId );

	ImUser getByCodeAndTenantId(@Param("code") String code, @Param("tenantId") Long tenantId);

	List<ImUser> findByImUserWhere(ImUserWhere imUserWhere);
	
	Long findTotalByImUserWhere(ImUserWhere imUserWhere);

	List<ImUser> getAllChangeUsers(ImUserWhere imUserWhere);
}
